package com.my.chapter9;

public class practice8 {
    public static void main(String[] args) {
        Sandwich s = new Sandwich();
        s.eat();
        s.type();
    }
}

interface FastFood{
    void type();
}

class Meal{
    void eat(){
        System.out.println("Meal.eat()");
    }
}

class Sandwich extends Meal implements FastFood{

    @Override
    public void type() {
        System.out.println("类型是三明治");
    }
}


